﻿namespace ClassLibrary.BusinessLayer.BusinessObjects
{
    using System;

    [AttributeUsage(AttributeTargets.Class)]
    public class ClassTableAttribute : Attribute
    {
        private bool boolReturnIdentity;
        private string strTableName;

        public ClassTableAttribute(string TableName, bool ReturnIdentity)
        {
            this.strTableName = TableName;
            this.boolReturnIdentity = ReturnIdentity;
        }

        public bool ReturnIdentity
        {
            get
            {
                return this.boolReturnIdentity;
            }
        }

        public string TableName
        {
            get
            {
                return this.strTableName;
            }
        }
    }
}

